menu1 = { 
                    {Name="test1", Value="print('test1')"}, 
                    {Name="test2", Value="print('test2')"}
                }
menu2 = { 
                    {Name="test3", Value="print('test3')"}, 
                    {Name="test4", Value="print('test4')"}
                }
menu3 = { 
                    {Name="test5", Value="print('test5')"}, 
                    {Name="menu2r", Value=menu2}
                }
menuTable = { 
                          {Name="menu1", Value=menu1},
                          {Name="menu2", Value=menu2},
			  {Name="menu3", Value=menu3}
                      }
print(APPGS.createMenu(menuTable))